/**
 * @this RXForm: 表单
 *
 * 可以移植的 Form
 *
 * @flow
 */

import React, { Component } from 'react'
import { View } from 'react-native'

import FormHOC from './core/FormHOC'

class RXForm extends Component {
  constructor(props) {
    super(props)
  }

  static propTypes = {
    ...View.propTypes,
  }

  static defaultProps = {
    ...View.defaultProps,
  }

  render() {
    const { children, ...others } = this.props
    return (
      <View {...others} >
        {children}
      </View>
    )
  }
}

export default FormHOC(RXForm)